package cap5;

public class R101 extends MaquinaExpendedora {

	private int maxCrema;
	private int cantCrema;

	public R101(int n) {
		super(n);
		cantCrema = maxCrema;
	}
	
	public int vasosCarioca() {
		return 1;
	}
	
	public boolean equals(MaquinaExpendedora e) {
		  boolean ig;
		  if (this == e)
		    ig = true;
		  else if (e == null)
		    ig = false;
		   else if(getClass()!= e.getClass())
		     ig = false;
		    else { 
		     R101 r = (R101) e;
		     ig=super.equals(e) && 
		        cantCrema == r.obtenerCantCrema();
		    }
		  return ig;
		  
	}
	
	public boolean equals(R101 e) {
		  boolean ig;
		  if (this == e)
		    ig = true;
		  else if (e == null)
		    ig = false;
		   else if(getClass()!= e.getClass())
		     ig = false;
		    else { 
		     R101 r = (R101) e;
		     ig=super.equals(e) && cantCrema == r.obtenerCantCrema();
		    }
		     return ig;}
	



	private int obtenerCantCrema() {
		// TODO Auto-generated method stub
		return 0;
	}
	
	}
